package pl.diagnoser.client.dto;

import com.google.gwt.user.client.rpc.IsSerializable;

public class AppDTO implements IsSerializable {

	private long appId;
	private String appName;
	private int isActive;
	private int isSearchMode;
	
	public AppDTO() {}
	public AppDTO( long appId, String appName, int isActive, int isSearchMode ) {
		this.appId = appId;
		this.appName = appName;
		this.isActive = isActive;
		this.isSearchMode = isSearchMode;
	}
	
	public Long getAppId() {
		return this.appId;
	}
	
	public void setAppId(Long appId) {
		this.appId = appId;
	}
	
	public String getAppName() {
		return this.appName;
	}
	
	public void setAppName(String appName) {
		this.appName = appName;
	}
	
	public int getIsActive() {
		return this.isActive;
	}
	
	public void setIsActive(int isActive) {
		this.isActive = isActive;
	}
	
	public int getIsSearchMode() {
		return this.isSearchMode;
	}
	
	public boolean getIsSearchModeB() {
		if(getIsSearchMode() == 1)
			return true;
		else
			return false;
	}
	
	public void setIsSearchMode(int isSearchMode) {
		this.isSearchMode = isSearchMode;
	}
}